import request from '../utils/request';
// 获取列表接口
export const getCategoriesList = (params) => request({
  url: 'categories',
  params,
});
// 新增商品接口
export const addCategories = (data) => request({
  url: 'categories',
  method: 'post',
  data,
});
// 编辑商品接口
export const editCategories = (id, data) => request({
  url: `categories/${id}`,
  method: 'put',
  data,
});
// 删除商品接口
export const delCategories = (id) => request({
  url: `categories/${id}`,
  method: 'delete',
});
